<?php
$servername = "localhost";
$username = "root";  // 默认数据库用户名
$password = "store";  // 默认数据库密码
$dbname = "aiweb";  // 使用之前创建的数据库

// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);

// 检查连接
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}
echo "Connected successfully";
mysqli_close($conn);
?>
